package cn.zhiquxing.service;

import cn.zhiquxing.pojo.User;
import com.mongodb.client.result.DeleteResult;
import com.mongodb.client.result.UpdateResult;

import java.util.List;

public interface UserService {
    
    public User getUser(Long id);
    
    public int insertUser(User user);
    
    public int insertUsers(List<User> users);
    
    public User insertUser2(User user);
    
    int deleteUser(Long id);
    
    List<User> findUsers(String userName, String note);
    
    User updateUser(Long id, String userName);
    
    void saveUser(User user);
    
    User findUserById(Long id);
    
    List<User> findUser(String userName, String note, int skip, int limit);
    
    DeleteResult deleteUserById(Long id);
    
    UpdateResult updateUserById(Long id, String userName, String note);
}
